from common import *

import pylab

try:
    import Image
except ImportError, exc:
    raise SystemExit("PIL must be installed")

def showpngFunc(in0):
    while True:
        pngdata = in0()

        A = Image.fromstring(pngdata)
        pylab.imshow(A)
        pylab.show()
                
        
